<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    <h2>正在测试jq的表单验证插件</h2>
    <form action="">
        <input type="text" name="username" required=true><br>
        <input type="text" name="password" required=true id="pass"><br>
        <input type="text" name="password2" required=true equalTo="#pass"><br>
        <input type="text" name="tel" required=true digits=true maxlength="11" minlength="11"><br>
        <input type="text" name="email" required=true email=true><br>
        <input type="submit">
    </form>
</body>
<script src="../jquery.js"></script>
<script src="./jquery.validate.js"></script>
<script src="./jquery.validate.messages_zh.js"></script>
<script>
    $("form").validate();
</script>
</html>